using Newtonsoft.Json;

namespace QiaoAiGRPCService.Models.Ysb.Json
{
    public class JsonYsbH5OrderRefundData
    {
        [JsonProperty("return_code")]
        public string ReturnCode { set; get; } = "";


        [JsonProperty("return_msg")]
        public string ReturnMsg { set; get; } = "";

        [JsonProperty("total_fee")]
        public string TotalFee { set; get; } = "";

        [JsonProperty("fund_type")]
        public string FundType { set; get; } = "";

        [JsonProperty("refund_fee")]
        public string RefundFee { set; get; } = "";

        [JsonProperty("out_trade_id")]
        public string OutTradeId { set; get; } = "";

        [JsonProperty("trans_datetime")]
        public string TransDatetime { set; get; } = "";

        [JsonProperty("refund_datetime")]
        public string RefundDatetime { set; get; } = "";

        [JsonProperty("hanglingCharge")]
        public string HandingCharge { set; get; } = "";

        [JsonProperty("refundFlag")]
        public string RefundFlag { set; get; } = "";

        [JsonProperty("refund_no")]
        public string RefundNo { set; get; } = "";

        public YsbH5OrderRefundDataResponse ToYsbH5OrderRefundDataResponse()
        {
            YsbH5OrderRefundDataResponse response = new YsbH5OrderRefundDataResponse();
            response.ReturnCode = ReturnCode;
            response.ReturnMsg = ReturnMsg;
            response.TotalFee = TotalFee;
            response.FundType = FundType;
            response.RefundFee = RefundFee;
            response.OutTradeId = OutTradeId;
            response.TransDatetime = TransDatetime;
            response.RefundDatetime = RefundDatetime;
            response.HanglingCharge = HandingCharge;
            response.RefundFlag = RefundFlag;
            response.RefundNo = RefundNo;
            return response;
        }   

    }
}
